package com.hibase.core.mq.factory;

import java.lang.reflect.Proxy;

/**
 */
public class HibaseQueueWrapper implements QueueWrapper{

    @Override
    public <T> T getInstance(Class<T> clz) throws Exception {
        return (T) Proxy.newProxyInstance(clz.getClassLoader(),new Class[]{clz}, HandlerFactory.INSTANCE.instance(clz));
    }


}
